home *** CD-ROM | disk | FTP | other *** search
/ Minami 58 / MINAMI58.ISO / Varios / Juegos Flash / Gold Yard.exe / scripts / DefineButton2_326 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2003-04-29  |  414b  |  18 lines

  1. on(release){
  2.    if(_root.gameover == 0)
  3.    {
  4.       if(_root.map_switch == 0)
  5.       {
  6.          _root.map_switch = 1;
  7.          _root.mapengine.gotoAndPlay("mapopen");
  8.          _root.gui_infobox = "Close MAP";
  9.       }
  10.       else if(_root.map_switch == 1)
  11.       {
  12.          _root.map_switch = 0;
  13.          _root.mapengine.gotoAndPlay("mapclose");
  14.          _root.gui_infobox = "Open MAP";
  15.       }
  16.    }
  17. }
  18.